package com.karal.javase.cher03;

/**
 * @TODO
 * @Author xu
 * 2025/3/6
 */
public class WPSTest {
    public void choose(WPSType type) {
        switch (type) {
            case WORD:
                System.out.println("word开档");
                break;
            case PPT:
                System.out.println("ppt开档");
                break;
            case EXCEL:
                System.out.println("excel开档");
                break;
            case XMIND:
                System.out.println("xmind开档");
                break;
        }

    }


    public static void main(String[] args) {
        WPSTest Test = new WPSTest();
        Test.choose(WPSType.WORD);
    }
}
        enum WPSType {

            WORD, PPT, EXCEL, XMIND
        }



